package BC89_密码验证;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (sc.hasNext()) {
            String passWord1 = sc.next();
            String passWord2 = sc.next();

            if (passWord1.equals(passWord2)){
                System.out.println("same");
            }else {
                System.out.println("different");
            }
        }
    }
}
